package service;

import dao.GroupDao;
import entity.Group;
import org.springframework.beans.factory.annotation.Autowired;

import javax.transaction.Transactional;

/**
 * Created by jifeng on 2016/12/2 0002.
 */
@Transactional
public class GroupService {

    @Autowired
    private GroupDao groupDao;

    public GroupDao getGroupDao() {
        return groupDao;
    }

    public void setGroupDao(GroupDao groupDao) {
        this.groupDao = groupDao;
    }

    public Group findGroup(int id){
        return groupDao.findGroup(id);
    }
}
